﻿using FreeSql.DataAnnotations;
using System;

namespace Enter.Admin.Entities
{
    /// <summary>
    /// 员工
    /// </summary>
    public class Employ 
    {
        public long Id { get; set; }
        public long RoleId { get; set; }
        public string UserName { get; set; } = string.Empty;
        public string Password { get; set; } = string.Empty;
        public string TrueName { get; set; } = string.Empty;
        public string Email { get; set; } = string.Empty;
        public string Phone { get; set; } = string.Empty;
        public int State { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }       
        public bool IsDeleted { get; set; }

        [Navigate(nameof(RoleId))]
        public virtual Role Role { get; set; }
    }
}
